<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
  <head>    
    <title>doGet与doPost方法</title>
  </head> 
  <body>
  <form action="show" method="post">
  	<p>输入字符串，提交给Servlet(Post提交)<br>
  	 	<input type="text" name="str" size="10"> 
  	 	<input type="submit" name="submit" value="提交">
  	</p>
  </form>
  
  <form action="show" method="get">
  	<p>输入字符串，提交给Servlet(Get提交)<br>
  	 	<input type="text" name="str" size="10"> 
		<input type="submit" name="submit" value="提交"> 	 	
 	 </p>
  </form>
  </body>
</html>
